package com.leyou.user.service;

import com.leyou.item.pojo.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class UserServiceTest {

    @Autowired
    UserService userService;

    @Test
    public void queryUserByUsernameAndPassword() {

        User user = userService.queryUserByUsernameAndPassword("tom123", "123456");

        System.out.println(user);
    }
}